]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid: Add more possible icon sizes
authorSebastian Keller <skeller@gnome.org>
Mon, 2 May 2022 02:41:45 +0000 (04:41 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 4 May 2022 20:49:15 +0000 (20:49 +0000)
When selecting the largest possible icon size for restricted vertical or
horizontal space the options for low resolution icons were rather coarse
grained. This could often result in seemingly too small icons being
chosen in the app grid on systems with low vertical resolution, because
the next larger size would exceed the limit by a few pixels.

This adds two more commonly used sizes for application icons to have
some more options with restricted space.

Helps: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2173
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2289>

js/ui/iconGrid.js

index 362cfda9150d0445c24054c7b200229542666b0e..599374fa35922daa040f33818630c97bc6575491 100644 (file)
@@ -13,7 +13,9 @@ var PAGE_SWITCH_TIME = 300;
 var IconSize = {
     LARGE: 96,
     MEDIUM: 64,
+    MEDIUM_SMALL: 48,
     SMALL: 32,
+    SMALLER: 24,
     TINY: 16,
 };